
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
 }

:root {
    --primary: #89c9f5;
    --primary-light: #4895ef;
    --secondary: #966cf1;
    --accent: #bc77ee;
    --success: #4cc9f0;
    --warning: #f72585;
    --text: rgba(3, 3, 3, 0.6);
    --text-light: #6c757d;
    --bg: #f8f9fb;
    --card-bg: #ffffff;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.08);
    --hover-shadow: rgba(67, 97, 238, 0.15);
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.collection-practice-page {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo::before {
    content: "📚";
    font-size: 28px;
}

.el-menu {
    background: transparent !important;
    border: none !important;
}

.el-menu--horizontal > .el-menu-item {
    color: rgba(255, 255, 255, 0.85) !important;
    height: 70px;
    line-height: 70px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none !important;
}
.el-menu--horizontal > .el-menu-item:not(.is-active):hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}
.el-menu--horizontal > .el-menu-item.is-active {
    color: white !important;
    font-weight: 600;
}
.el-menu--horizontal > .el-menu-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.auth-buttons > .el-button {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}
.auth-buttons > .el-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.practice-content {
    flex: 1;
    padding: 30px;
    background-color: var(--bg);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 28px;
    color: var(--accent);
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.practice-btn {
    background: var(--accent);
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(114, 9, 183, 0.3);
}

.practice-btn:hover {
    background: #b5179e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(114, 9, 183, 0.4);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.collection {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
}

.stat-icon.category {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    color: white;
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-content .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.questions-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.question-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.question-card:hover {
    background: #f9fbfd;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.type-choice {
    background: #ecf5ff;
    color: #409EFF;
}

.type-fill {
    background: #f0f9eb;
    color: #67C23A;
}

.question-content {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.question-info {
    display: flex;
    gap: 15px;
    color: #909399;
    font-size: 13px;
}

.question-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.favorite-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #909399;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #dcdfe6;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* 练习对话框样式 */
.el-dialog {
    width: 800px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    margin: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.el-dialog__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
    margin: 0;
}

.el-dialog__title {
    color: white !important;
    font-size: 20px;
    font-weight: 600;
}

.el-dialog__headerbtn .el-dialog__close {
    color: white !important;
    font-size: 20px;
}

.el-dialog__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
}

.question-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.question-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.question-type {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.question-content {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
    padding-left: 20px;
    text-align: left;
}

.options-container,
.fill_in-container {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}

.el-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100%;
}

.el-radio {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0 !important;
}

.el-radio__input {
    margin: 0 !important;
    flex-shrink: 0;
}

.el-radio__label {
    user-select: none;
}

.el-input {
    margin-top: 15px;
    font-size: 16px;
    padding-left: 20px;
}

.el-input :deep(.el-input__inner) {
    height: 48px;
    border-radius: 10px;
    border: 2px solid var(--border);
    padding: 0 18px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.el-input :deep(.el-input__inner:focus) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    z-index: 5;
}

.action-buttons-full {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.el-button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.favorite-btn:hover {
    background: rgba(245, 108, 108, 0.1);
}

.correct-answer {
    background: rgba(76, 201, 240, 0.15);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--success);
    font-size: 16px;
}
.comments-section {
    width: 100%; /* 设置为100%宽度 */
    max-width: 1000px; /* 或者设置一个固定宽度，如600px */
    margin: 20px auto 0; /* 居中显示 */
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.comment-list-wrapper {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.new-comment-input {
    margin: 15px 0;
}

.submit-comment-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* 调整对话框内边距 */
.el-dialog__body {
    padding: 30px;
}

/* 确保评论区域与上方内容有足够间距 */
.question-block {
    margin-bottom: 30px;
}

.like-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    color: #606266;
}

.like-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.delete-btn {
    padding: 4px;
    display: flex;
    align-items: center;
    color: #606266;
}

.delete-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #999;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .question-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .el-dialog {
        width: 95% !important;
    }

    .action-buttons-full {
        flex-direction: column;
        gap: 10px;
    }

    .left-buttons, .right-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

